package com.spring.demo.service;

import org.springframework.data.domain.Page;

import com.spring.demo.domain.User;
import com.spring.demo.page.PageCondition;

public interface UserService {

	User save(User user);

	User findByUserName(String userName);

	User findByLoginName(String loginName);

	Page<User> findAll(PageCondition pageCondition);

	void deleteUser(Long id);

}
